package com.gwq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gwq.base.AutoEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;


@Data
@TableName("cm_message_file")
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class MessageFile implements Serializable {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("帖子id")
    private String messageId;


    @ApiModelProperty("文件路径")
    private String fileUrl;

    @ApiModelProperty("文件路径")
    private String fileName;

    @ApiModelProperty("文件类型")
    private Integer fileType;

    @ApiModelProperty("文件类型后缀")
    @TableField(exist = false)
    private String type;
}
